
/** 
 * @method 获取浏览器宽高
 * @returns Object: {height:Number,Width:Number}
 */
export const getDocumentSize = () => {
  let WH = { width: window.innerWidth, height: window.innerHeight };
  window.addEventListener('resize', function () {
    WH = { width: window.innerWidth, height: window.innerHeight };
    return WH
  });
  return WH
};